﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TheCell;

namespace SudoCalc
{
    public class StatusCounter
    {
        public static bool FinalCounter(List<Cell> cells)
        {
            int count = 0;
            foreach (Cell cell in cells)
            {
                if (cell.Status == CellStatus.None)
                {
                    count++;
                }
            }
            if (count < 1) 
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        
        public static bool ChangeCounter(List<Cell> cells)
        {
            int count = 0;
            foreach(Cell cell in cells)
            {
                if (cell.Change)
                {
                    count++;
                }

            }
            if (count != 0) 
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        /*public static bool CalcCounter(List<Cell> cells)
        {
            int count = 0;
            foreach (Cell cell in cells)
            {
                if (cell.Status == CellStatus.Calc)
                {
                    count++;
                }
            }
            if (count > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }*/
    }
}
